package org.xinjiang.data.migration.common.mapstruct;

import org.mapstruct.MapperConfig;
import org.xinjiang.data.migration.common.mapstruct.convert.BaseConvert;
import org.xinjiang.data.migration.common.mapstruct.convert.Qualified;

import static org.mapstruct.CollectionMappingStrategy.ADDER_PREFERRED;

/**
 * 如果定义了自己的基础 Mapper, 则不应该使用这个 Mapper 类,可拷贝这个配置,然后添加自己的 Mapper 到 uses 中
 *
 * @author wenjie
 * @date 2022/11/25
 */
@MapperConfig(uses = {BaseConvert.class, Qualified.class}, componentModel = "spring",
        collectionMappingStrategy = ADDER_PREFERRED)
@SuppressWarnings("unused")
public interface CommonConvertConfig {

}
